package com.sky.financelake.enums;

public enum StockToolEnums {
    RISEN_OVER_ZERO("sd.rf_range > 0", 0, "涨幅>0"), RISEN_OVER_ONE("sd.rf_range > 1", 1, "涨幅>1"), RISEN_OVER_TWO("sd.rf_range > 2", 2, "涨幅>2"), RISEN_OVER_THREE("sd.rf_range > 3", 3, "涨幅>3"),
    RISEN_OVER_FOUR("sd.rf_range > 4", 4, "涨幅>4"), RISEN_OVER_FIVE("sd.rf_range > 5", 5, "涨幅>5"), RISEN_OVER_SIX("sd.rf_range > 6", 6, "涨幅>6"), RISEN_OVER_SEVEN("sd.rf_range > 7", 7, "涨幅>7"), RISEN_OVER_EIGHT("sd.rf_range > 8", 8, "涨幅>8"), RISEN_OVER_NINE("sd.rf_range > 9", 9, "涨幅>9"),
    DROP_OVER_ZERO("sd.rf_range < 0", 10,"跌幅>0"), DROP_OVER_ONE("sd.rf_range < -1", 11,"跌幅>1"), DROP_OVER_TWO("sd.rf_range < -2", 12,"跌幅>2"), DROP_OVER_THREE("sd.rf_range < -3", 13,"跌幅>3"),
    DROP_OVER_FOUR("sd.rf_range < -4", 14,"跌幅>4"), DROP_OVER_FIVE("sd.rf_range < -5", 15,"跌幅>5"), DROP_OVER_SIX("sd.rf_range < -6", 16,"跌幅>6"), DROP_OVER_SEVEN("sd.rf_range < -7", 17,"跌幅>7"), DROP_OVER_EIGHT("sd.rf_range < -8", 18,"跌幅>8"), DROP_OVER_NINE("sd.rf_range < -9", 19,"跌幅>9"),
    TWO_2_FOUR("sd.rf_range > 2 and sd.rf_range < 4", 20,"涨幅2-4"), FOUR_2_SIX("sd.rf_range > 4 and sd.rf_range < 6", 21,"涨幅4-6"), NEGA_FOUR_2_NEGE_TWO("sd.rf_range > -4 and sd.rf_range < -2", 22,"跌幅2-4"), NEGA_TWO_2_ZERO("sd.rf_range > -2 and sd.rf_range < 0", 23,"跌幅0-2"),
    RED_OVER_ZERO("sd.close_price>sd.open_price and sd.rf_range > 0", 24,"阳线>0"), RED_OVER_ONE("sd.close_price>sd.open_price and sd.rf_range >1", 25,"阳线>1"), RED_OVER_TWO("sd.close_price>sd.open_price and sd.rf_range >2", 26,"阳线>2"), RED_OVER_THREE("sd.close_price>sd.open_price and sd.rf_range >3", 27,"阳线>3"), RED_OVER_FOUR("sd.close_price>sd.open_price and sd.rf_range >4", 28,"阳线>4"),
    RED_OVER_FIVE("sd.close_price>sd.open_price and sd.rf_range >5", 29,"阳线>5"), RED_OVER_SIX("sd.close_price>sd.open_price and sd.rf_range >6", 30,"阳线>6"), RED_OVER_SEVEN("sd.close_price>sd.open_price and sd.rf_range >7", 31,"阳线>7"), RED_OVER_EIGHT("sd.close_price>sd.open_price and sd.rf_range >8", 32,"阳线>8"), RED_OVER_NINE("sd.close_price>sd.open_price and sd.rf_range >9", 33,"阳线>9"),
    GREEN_OVER_ZERO("sd.open_price>sd.close_price and sd.rf_range > 0", 34,"阴线>0"), GREEN_OVER_ONE("sd.open_price>sd.close_price and sd.rf_range>1", 35,"阴线>1"), GREEN_OVER_TWO("sd.open_price>sd.close_price and sd.rf_range>2", 36,"阴线>2"), GREEN_OVER_THREE("sd.open_price>sd.close_price and sd.rf_range>3", 37,"阴线>3"), GREEN_OVER_FOUR("sd.open_price>sd.close_price and sd.rf_range>4", 38,"阴线>4"),
    GREEN_OVER_FIVE("sd.open_price>sd.close_price and sd.rf_range > 5", 39,"阴线>5"), GREEN_OVER_SIX("sd.open_price>sd.close_price and sd.rf_range>6", 40,"阴线>6"), GREEN_OVER_SEVEN("sd.open_price>sd.close_price and sd.rf_range>7", 41,"阴线>7"), GREEN_OVER_EIGHT("sd.open_price>sd.close_price and sd.rf_range>8", 42,"阴线>8"), GREEN_OVER_NINE("sd.open_price>sd.close_price and sd.rf_range>9", 43,"阴线>9");

    private Integer index;
    private String sql;
    private String name;


    StockToolEnums(String sql, Integer index, String name) {
        this.name = name;
        this.index = index;
        this.sql = sql;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }
}
